package com.example.tliasmanagement.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Log {
    private Integer id; //ID
    private Integer operateUser; //操作人的id
    private String operateName; //操作人
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operateTime; //操作时间
    private String className; //操作的类名
    private String methodName; //操作的方法名
    private String methodParams; //方法参数
    private String methodDesc; //方法描述
    private String returnValue; //返回值
    private Long costTime; //方法执行耗时, 单位:ms
    private Integer empId; //员工ID
    private String empName; //员工姓名
    private String operateEmpName; //员工姓名
}
